<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
    <script src="../vue.js"></script>
</head>
<body>
    
    <div id="app">
        <children v-bind:cmovies='movies' :cmessage='message'></children>
    </div>

    <template id='cpn'>
        <div>
            <p>{{cmovies}}</p>
            <p>{{cmessage}}</p>
        </div>
    </template>

    <script>
        Vue.component('children',{
            props:['cmovies','cmessage'],
            template:'#cpn'
        })
        const app=new Vue({
            el:'#app',
            data:{
                message:'你好啊',
                movies:['1','2','3'],
            },
            methods:{},
        });
    </script>
</body>
</html>